<?php
include'../King/hero.php';
if($islogin==1){}else exit("<script language='javascript'>window.location.href='login.php';</script>");
$yunxingxieyi=$_SERVER['SERVER_PROTOCOL'];
$dangqianduankou=$_SERVER['SERVER_PORT'];
?>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
	<title><?php echo $conf['sitename']; ?>-后台首页</title>
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="default">
	<link rel="stylesheet" type="text/css" href="css/materialdesignicons.min.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="css/style.min.css">
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<style>
		.tdBox {
			transform-style: preserve-3d;
			transform: perspective(1200px);
		}
		.tdBox .text-white  {
			transform: translateZ(50px);
		}
		iframe {
          overflow-y: auto;
          scrollbar-width: 5px;
          scrollbar-color: #f00 #ccc;
        }
	</style>
</head>

<body>
	<div class="container-fluid">

		<div class="row">

			<div class="col-md-6 col-xl-3 tdBox">
				<div class="card bg-cyan bg-gradient text-white">
					<div class="card-body">
						<div class="d-flex justify-content-between">
							<span class="avatar-md rounded-circle bg-white bg-opacity-25 avatar-box">
								<i class="mdi mdi-information fs-4"></i>
							</span>
							<span class="fs-4">当前版本</span>
						</div>
						<div class="text-end fs-5">V1.1</div>
					</div>
				</div>
			</div>

			<div class="col-md-6 col-xl-3 tdBox">
				<div class="card bg-purple bg-gradient text-white">
					<div class="card-body">
						<div class="d-flex justify-content-between">
							<span class="avatar-md rounded-circle bg-white bg-opacity-25 avatar-box">
								<i class="mdi mdi-check-circle fs-4"></i>
							</span>
							<span class="fs-4">授权域名</span>
						</div>
						<div class="text-end fs-5"><?php echo $_SERVER['HTTP_HOST']; ?></div>
					</div>
				</div>
			</div>

			<div class="col-md-6 col-xl-3 tdBox">
				<div class="card bg-pink bg-gradient text-white">
					<div class="card-body">
						<div class="d-flex justify-content-between">
							<span class="avatar-md rounded-circle bg-white bg-opacity-25 avatar-box">
								<i class="mdi mdi-cpu-64-bit fs-4"></i>
							</span>
							<span class="fs-4">当前运行协议</span>
						</div>
						<div class="text-end fs-5"><span><?php echo $yunxingxieyi; ?></span></div>
					</div>
				</div>
			</div>

			<div class="col-md-6 col-xl-3 tdBox">
				<div class="card bg-yellow bg-gradient text-white">
					<div class="card-body">
						<div class="d-flex justify-content-between">
							<span class="avatar-md rounded-circle bg-white bg-opacity-25 avatar-box">
								<i class="mdi mdi-memory fs-4"></i>
							</span>
							<span class="fs-4">当前开放端口</span>
						</div>
						<div class="text-end fs-5"><span><?php echo $dangqianduankou; ?></span></div>
					</div>
				</div>
			</div>

		</div>

		<div class="row">

			<div class="col-md-6">
				<div class="card">
					<div class="card-header">
						<div class="card-title">公告</div>
					</div>
					<div class="card-body">
                        <iframe src="https://www.xfabe.com/mimicry-v5/notice.html" frameborder="0" width="100%" height=""></iframe>
					</div>
				</div>
			</div>

			<div class="col-md-6">
				<div class="card">
					<div class="card-header">
						<div class="card-title">赞助名单</div>
					</div>
					<div class="card-body">
						<iframe src="https://www.xfabe.com/mimicry-v5/sponsor.html" frameborder="0" width="100%" height=""></iframe>
					</div>
				</div>
			</div>

		</div>

		<div class="row">

			<div class="col-lg-12">
				<div class="card">
					<header class="card-header">
						<div class="card-title">更新日志</div>
					</header>
					<div class="card-body">
						<iframe src="https://www.xfabe.com/mimicry-v5/upload.html" frameborder="0" width="100%" height=""></iframe>
					</div>
				</div>
			</div>

		</div>

	</div>

	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/popper.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/chart.min.js"></script>
	<script type="text/javascript" src="js/fireworks.js"></script>
</body>

</html>